package com.lebang.mapper;

import com.lebang.configuration.datasource.DataSource;
import com.lebang.domain.CencesAppstoreRegister;
import com.lebang.example.CencesAppstoreRegisterExample;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;

import javax.annotation.ParametersAreNonnullByDefault;

/**
 * CencesAppstoreRegisterMapper继承基类
 */
@Mapper
public interface CencesAppstoreRegisterMapper extends MyBatisBaseDao<CencesAppstoreRegister, Integer, CencesAppstoreRegisterExample> {

    Long countAll(@Param("appId") Integer appId);

    List<Integer> selectByLimit(@Param("page") long page, @Param("limit") Integer limit, @Param("appId") Integer appId);

    Integer selectOneByLimit(@Param("appId") Integer appId);

    @DataSource("commonDB")
    int insertCencesAppstoreRegister(CencesAppstoreRegister vo);
}